﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.YWDF
{
    /// <summary>
    /// 业务订房流程记录
    /// </summary>
    [Serializable]
    public class wf_ywdf
    {
        /// <summary>
        /// 订房费用类型：
        /// FyProject：项目费用，必须在订房记录中指定项目
        /// FyDepartment：部门费用，部门为订房记录的申请人部门
        /// FyOther：其他费用，订房为公司综合部支出
        /// </summary>
        public enum DF_FYLX
        {
            FyProject = 1,
            FyDepartment = 2,
            FyOther = 3
        }

        #region 数据表名称
        public static readonly string TableName = "wf_ywdf";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// id
            /// </summary>
            public static readonly string id = @"id";

            /// <summary>
            /// 订房费用类型
            /// </summary>
            public static readonly string df_fylx = @"df_fylx";

            /// <summary>
            /// 所属项目ID
            /// </summary>
            public static readonly string df_project_id = @"df_project_id";

            /// <summary>
            /// 所属部门ID
            /// </summary>
            public static readonly string department_id = @"department_id";

            /// <summary>
            /// 申请人ID
            /// </summary>
            public static readonly string user0_id = @"user0_id";

            /// <summary>
            /// 订房原始申请需求
            /// </summary>
            public static readonly string df_describe0 = @"df_describe0";

            /// <summary>
            /// 订房原始申请时间
            /// </summary>
            public static readonly string df_date0 = @"df_date0";

            /// <summary>
            /// 确认人ID
            /// </summary>
            public static readonly string user1_id = @"user1_id";

            /// <summary>
            /// 订房确认需求
            /// </summary>
            public static readonly string df_describe1 = @"df_describe1";

            /// <summary>
            /// 订房确认时间
            /// </summary>
            public static readonly string df_date1 = @"df_date1";

            /// <summary>
            /// 订房流程是否结束
            /// </summary>
            public static readonly string df_isEnd = @"df_isEnd";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string id { get; set; }

        /// <summary>
        /// 订房费用类型
        /// </summary>
        public virtual DF_FYLX df_fylx { get; set; }

        /// <summary>
        /// 所属项目
        /// </summary>
        public virtual ywxt.t_project project { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public virtual ywxt.t_sys_department department { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        public virtual ywxt.t_sys_user user0 { get; set; }

        /// <summary>
        /// 订房原始申请需求
        /// </summary>
        public virtual string df_describe0 { get; set; }

        /// <summary>
        /// 订房原始申请时间
        /// </summary>
        public virtual string df_date0 { get; set; }

        /// <summary>
        /// 确认人
        /// </summary>
        public virtual ywxt.t_sys_user user1 { get; set; }

        /// <summary>
        /// 订房确认需求
        /// </summary>
        public virtual string df_describe1 { get; set; }

        /// <summary>
        /// 订房确认时间
        /// </summary>
        public virtual string df_date1 { get; set; }

        /// <summary>
        /// 订房流程是否结束
        /// </summary>
        public virtual bool df_isEnd { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion
    }
}

